/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-29
 * Time: 16:40
 */
public class Test {
    public static void main(String[] args) {
        /*MySingleList mySingleList = new MySingleList();
        //mySingleList.creatList();
        mySingleList.addFirst(12);
        mySingleList.addFirst(23);
        mySingleList.addFirst(34);
        mySingleList.addFirst(45);
        mySingleList.addLast(11);
        mySingleList.addIndex(1,22);
        System.out.println("======");
        mySingleList.display();
        System.out.println("======");
        mySingleList.remove(34);
        mySingleList.display();

        //int count = mySingleList.size();
        //System.out.println(count);

        System.out.println("======");
        System.out.println(mySingleList.contains(34));*/


        MyLinkedList myLinkedList = new MyLinkedList();

        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);
        myLinkedList.addFirst(5);
        myLinkedList.addLast(6);
        myLinkedList.display();
        System.out.println("================");
        myLinkedList.addIndex(2,99);
        myLinkedList.display();
    }
}
